package com.me.bbs.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author lm
 * @since 2023-01-09
 */
@TableName("post_like")
@ApiModel(value = "PostLike对象", description = "")
public class PostLike implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Long postLikeId;

    private Long user;

    private Long post;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    public Long getPostLikeId() {
        return postLikeId;
    }

    public void setPostLikeId(Long postLikeId) {
        this.postLikeId = postLikeId;
    }

    public Long getUser() {
        return user;
    }

    public void setUser(Long user) {
        this.user = user;
    }

    public Long getPost() {
        return post;
    }

    public void setPost(Long post) {
        this.post = post;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "PostLike{" +
            "postLikeId = " + postLikeId +
            ", user = " + user +
            ", post = " + post +
            ", createTime = " + createTime +
        "}";
    }
}
